package com.cnpinxi.domain;

import java.util.Date;

public class User {

    /**
     * 单位用户
     */
    public static final Byte USER_TYPE_ORGANIZATION=2;
    /**
     * 普通用户
     */
    public static final Byte USER_TYPE_NORMAL =1;

    private Long tid;

    private String userName;

    private String phone;
    private String passWord;

    private String userAddress;
    private String sourceQRCode;
    private String openId;
    private Byte userType;

    private Date createTime;


    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getSourceQRCode() {
        return sourceQRCode;
    }

    public void setSourceQRCode(String sourceQRCode) {
        this.sourceQRCode = sourceQRCode;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Byte getUserType() {
        return userType;
    }

    public void setUserType(Byte userType) {
        this.userType = userType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "tid=" + tid +
                ", userName='" + userName + '\'' +
                ", phone='" + phone + '\'' +
                ", passWord='" + passWord + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", openId='" + openId + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}